import httpService from './api';

export function selectCourseNameCount() {
    return httpService.get("/api/course/selectCourseNameCount");
}

export function selectTeacherCount() {
    return httpService.get("/api/course/selectTeacherCount");
}


export function selectResourceCount() {
    return httpService.get("/api/course_resource/selectResourceCount");
}

export function selectTeacherClassCount() {
    return httpService.get("/api/course/selectTeacherClassCount");
}


export function getMaxTypeCount() {
    return httpService.get("/api/course_resource/getMaxTypeCount");
}

export function selectWordCloud() {
    return httpService.get("/api/course/selectWordCloud");
}

export function selectPage(page,pageSize) {
    return httpService.get("/api/course/selectCoursePage",  { pageNum: page,pageSize:pageSize } );
}

export function selectPageByTeacherName(page,pageSize,teacherName) {
    return httpService.get("/api/course/selectCoursePageByTeacherName",  { pageNum: page,pageSize:pageSize ,name:teacherName} );
}